Ext.define('Admin.store.transfer.TransferStore', {
    extend: 'Ext.data.Store',
    alias: 'store.transferStore',
    model: 'Admin.model.transfer.TransferModel',
    //autoLoad: true,	//自动加载
     // data:{'content':[
     //                    { 'empName': 'Lisa',  "prePosition":"大佬",  "nowPosition":"小弟"  },
     //                    { 'empName': 'Bart',  "prePosition":"大佬",  "nowPosition":"小弟" },
     //                    { 'empName': 'Homer', "prePosition":"大佬",  "nowPosition":"小弟"  },
     //                    { 'empName': 'Marge', "prePosition":"大佬", "nowPosition":"小弟"  }
     //                ]},
   pageSize: 25,
    proxy: {
        type: 'ajax',
        url:'transfer/findPage.json',
        reader: {
            type: 'json',
            rootProperty: 'content',
            totalProperty : 'totalElements'
            //,successProperty: 'success'
        }
        ,simpleSortMode: true   //发送简单排序字段
    },
    remoteSort: true,   //远程（全局）排序
    sorters: [{ property: 'transferId',direction: 'desc'}]  //默认排序条件
});